<template>
  <div class="app-container">
        <iframe id="myIframe1" style="width: 100%; height: 800px;" scrolling="no">

        </iframe>
  </div>
</template>

<script>
    import axios from 'axios'
    export default {
        data() {
            return {
                form: {
                }
            }
        },
        created() {
            axios.get('http://localhost:8888/api/v1/candidates/auth').then(data => {
                console.log(data);
                if(data != "error") {
                    document.getElementById('iframeVideo').src = "http://10.13.130.198/ui/Homepage?token=" + data.access_token + "&refreshToken=" + data.refresh_token + "&tokenExp=3600";
                }
            });
        },
        methods: {
            // onSubmit1() {
            //     document.getElementById('myIframe1').src = "http://localhost:10087/vlc.html?mrl=rtsp://10.13.155.11:554/openUrl/rHEstFu";
            // },
        }
    }
</script>

<style scoped>
  .line{
    text-align: center;
  }
</style>
